home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / util-linux / examples / getopt-test.bash < prev    next >
Encoding:
Text File  |  2009-02-18  |  122 b   |  7 lines

  1. #!/bin/bash
  2. if `getopt -T >/dev/null 2>&1` ; [ $? = 4 ] ; then
  3.   echo "Enhanced getopt(1)"
  4. else
  5.   echo "Old getopt(1)"
  6. fi
  7.